# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/portaudio/portaudio-18.1.ebuild,v 1.13 2005/04/21 17:33:40 kito Exp $

inherit eutils

S=${WORKDIR}/${PN}
DESCRIPTION="An open-source cross platform audio API."
HOMEPAGE="http://www.portaudio.com"
SRC_URI="http://www.portaudio.com/archives/pa_snapshot_v19.tar.gz"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 sparc amd64 ~ppc ppc-macos ~mips hppa"

IUSE=""

RDEPEND="virtual/libc"
DEPEND="app-arch/unzip"

src_compile() {
	econf
	emake
}

src_install() {
	if ! use ppc-macos
	then
		dolib lib/libportaudio.so
	else
		dolib lib/libportaudio.dylib
	fi
	
	insinto /usr/include
	doins pa_common/portaudio.h

	dodoc docs/*
}
